package com.demo.petshop.service;

import com.demo.petshop.entity.CartItems;
import com.demo.petshop.entity.Products;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 *  服务层。
 *
 * @author lenovo
 * @since 2025-06-11
 */
public interface CartItemsService extends IService<CartItems> {
    Object getCart();

    Object addToCart(int productId,int quantity,int specId);

    Object removeFromCart(int cartItemId);

    Object updateCartSelection(int cartItemId,int selected);

    Object addProductQuantity(int cartItemId);

    Object disProductQuantity(int cartItemId);

    Object updateCartQuantity(int cartItemId,int quantity);


}
